//
//  ViewController.m
//  IDODashboardView
//
//  Created by 卓勇 on 2017/3/3.
//  Copyright © 2017年 idozhuoyong. All rights reserved.
//

#import "ViewController.h"
#import "IDODashboardView.h"

#define RGBColor(R, G, B)       [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:1.0]

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    IDODashboardView *dashboardView = [[IDODashboardView alloc] initWithFrame:CGRectMake(60, 70.f, CGRectGetWidth([UIScreen mainScreen].bounds) - 120, CGRectGetWidth([UIScreen mainScreen].bounds) - 120)];
    dashboardView.backgroundColor = RGBColor(60, 187, 194);
    dashboardView.minValue = 0;
    dashboardView.maxValue = 1000;
    dashboardView.currentValue = 680;
    dashboardView.titleLabel.text = @"信用极好";
    dashboardView.detailInfoLabel.text = @"评估时间: 2017-03-03";
    dashboardView.animationDuration = 5;
    [dashboardView refresh];
    
    [self.view addSubview:dashboardView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
// 2017-03-10 16:44:55.941 IDODashboardView[16860:1938734] -200.000000 --- -35.000000

@end
